package com.jwd.launch.service;

import android.os.Parcel;
import android.os.Parcelable;

public class PeopleParcelable implements Parcelable {
	public String phonenum;
	public String name;

	public PeopleParcelable(String phonenum, String name) {
		this.phonenum = phonenum;
		this.name = name;
	}

	public static final Parcelable.Creator<PeopleParcelable> CREATOR = new Parcelable.Creator<PeopleParcelable>() {
		public PeopleParcelable createFromParcel(Parcel in) {
			return new PeopleParcelable(in);
		}

		public PeopleParcelable[] newArray(int size) {
			return new PeopleParcelable[size];
		}
	};

	public PeopleParcelable() {
	}

	private PeopleParcelable(Parcel in) {
		readFromParcel(in);
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	public void readFromParcel(Parcel in) {
		phonenum = in.readString();
		name = in.readString();
	}

	@Override
	public void writeToParcel(Parcel arg0, int arg1) {
		arg0.writeString(phonenum);
		arg0.writeString(name);
	}
}
